home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / dev / c / libiconv_src.lha / tests / check-stateless.bat < prev    next >
Encoding:
DOS Batch File  |  2000-11-07  |  539 b   |  22 lines

  1. @ECHO OFF
  2. REM Complete check of a stateless encoding.
  3. REM Usage: check-stateless.bat SRCDIR CHARSET
  4.  
  5. .\table-from %2 > tmp-%2.TXT
  6. .\table-to %2 | sort > tmp-%2.INVERSE.TXT
  7. fc %1\%2.TXT tmp-%2.TXT
  8.  
  9. if not exist %1\%2.IRREVERSIBLE.TXT goto ELSE_1
  10.   copy /a %1\%2.TXT /a + %1\%2.IRREVERSIBLE.TXT /a tmp
  11.   sort tmp | uniq-u > tmp-orig-%2.INVERSE.TXT
  12.   fc tmp-orig-%2.INVERSE.TXT tmp-%2.INVERSE.TXT
  13.   del tmp
  14.   del tmp-orig-%2.INVERSE.TXT
  15.   goto ENDIF_1
  16. :ELSE_1
  17.   fc %1\%2.TXT tmp-%2.INVERSE.TXT
  18. :ENDIF_1
  19.  
  20. del tmp-%2.TXT
  21. del tmp-%2.INVERSE.TXT
  22.